🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / core / ble / src / commonMain / kotlin / org / meshtastic / core / ble / MeshtasticRadioProfile.kt
Displaying Raw • Download
core/ble/src/commonMain/kotlin/org/meshtastic/core/ble/MeshtasticRadioProfile.kt renovate/net.java.dev.jna-jna-5.x (5a8f4966) Text, 2.03 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.ble
Tff7b72import T7ee787kotlinx.coroutines.flow.Flow
T8b949e/** A definition of the Meshtastic BLE Service profile. */
Tff7b72interface T56d364MeshtasticRadioProfile Tb4b4b4{
T8b949e/** The flow of incoming packets from the radio. */
Tff7b72val Te6edf3fromRadioTb4b4b4: Te6edf3FlowTff7b72<Te6edf3ByteArrayTff7b72>
T8b949e/** The flow of incoming log packets from the radio. */
Tff7b72val Te6edf3logRadioTb4b4b4: Te6edf3FlowTff7b72<Te6edf3ByteArrayTff7b72>
T8b949e/** Sends a packet to the radio. */
Tff7b72suspend Tff7b72fun Td2a8ffsendToRadioTb4b4b4(Te6edf3packetTb4b4b4: Te6edf3ByteArrayTb4b4b4)
T8b949e/**
* Requests a drain of the FROMRADIO characteristic without writing to TORADIO.
*
* This is useful when the firmware has queued a response (e.g. `queueStatus` after a heartbeat) but did not send a
* FROMNUM notification. Without an explicit drain trigger the response would sit unread until the next unrelated
* FROMNUM notification arrives.
*/
Tff7b72fun Td2a8ffrequestDrainTb4b4b4(Tb4b4b4) Tb4b4b4{Tb4b4b4}
T8b949e/**
* Suspends until GATT notifications are enabled (CCCD written) for the primary observation characteristic.
*
* Callers should await this before triggering the Meshtastic handshake (`want_config_id`) to guarantee that FROMNUM
* notifications will be delivered. The default implementation returns immediately for profiles where CCCD readiness
* is not observable (e.g. fakes and non-BLE transports).
*/
Tff7b72suspend Tff7b72fun Td2a8ffawaitSubscriptionReadyTb4b4b4(Tb4b4b4) Tb4b4b4{Tb4b4b4}
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.09s